package com.wlps.service;

import com.wlps.entity.SecondClassification;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wlps.result.ResultVo;

import java.util.List;

/**
 * <p>
 * 二级分类表(second_classification)(删除二级分类时下面不能存在商品。) 服务类
 * </p>
 *
 * @author ZWYZY
 * @since 2020-07-31
 */
public interface ISecondClassificationService extends IService<SecondClassification> {
    /**
     * 增加二级分类
     *
     * @param firstId
     * @param secondName
     * @return
     */
    ResultVo addSecondClassification(Long firstId, String secondName);

    /**通过一级分类id查询所有二级分类
     * @param id
     * @return
     */
    ResultVo<List<SecondClassification>> getSecondClassificationList(Long id);
}
